import 'package:flutter/material.dart';
import '../../widget/commit/my_appbar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class Test2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: PreferredSize(
        child: MyAppBar(
          title: '测试页面：2',
        ),
        preferredSize: Size.fromHeight(ScreenUtil().setWidth(80)),
      ),
      body: Center(
        child: RaisedButton(
          child:Text('上一页'),
          onPressed: (){
            Navigator.pop(context);
          },
        ),
      ),
    );
  }
}